package pers.wensheng.patterns.structural_pattern.adapter_pattern.class_adapter_pattern.entity;

/**
 * SD卡的具体实现类
 */
public class SDCardImpl implements SDCard {
    /**
     * 读取SD卡内容
     *
     * @return
     */
    @Override
    public String readSD() {
        return "SD卡读取数据：hello SDCard";
    }

    /**
     * 往SD卡里面写内容
     */
    @Override
    public void writeSD(String msg) {
        System.out.println("SD卡写数据："+msg);
    }
}
